package st.business.tepth.business.user.busnumber.workholder.repair;

import io.reactivex.disposables.Disposable;
import st.business.tepth.base.OnDataConvertListener;
import st.business.tepth.business.bean.BusInfoWrapperBean;
import st.shadow.library.core.base.mvp.BaseModel;
import st.shadow.library.core.base.mvp.BasePresenter;
import st.shadow.library.core.base.mvp.BaseView;

/**
 * @author zhangyu
 * @date 2019/4/11
 */
public interface RepairWorkHolderContract {
    interface View extends BaseView {
        void showWorkInfo(BusInfoWrapperBean workInfoBean);
    }

    interface Model extends BaseModel {
        Disposable getWorkInfo(String token,
                               int repairId, OnDataConvertListener<BusInfoWrapperBean>
                                       listener);
    }

    abstract class Presenter extends BasePresenter<View> {
        abstract void getWorkInfo(String token, int repairId);
    }
}
